<?php
//URL: http://localhost/ChampChooser/core/services/user/loginService.php?username=uname0&password=pword0

require_once ("../../config/config.php");
require_once ("../../config/constants.php");
require_once ("../../db/queries.php");
require_once ("../../common/common.php");

$username = $_REQUEST["username"];
$password = $_REQUEST["password"];

function checkLogin($username, $password) {
	$strQuery = "select * from users where uname='" . $username . "' and pword='" . $password . "'";
	return generateResultSet($strQuery);
}

makeQueryXML(checkLogin($username, $password));
?>